const http = require('http')
const server = http.createServer((req,res) => {
    res.writeHead(200,{
        'Access-Control-Allow-Origin':'http://127.0.0.1:5500'
    })
    res.end('hello cors')
})

server.listen(3000,() => {
    console.log('server is running at http://localhost:3000')
})


